import request from '@/utils/request'

// 根据ID查询详情数据
export function getInfoById01(itemId, index) {
  return request({
    url: `/biz/item/01/getInfoById/${itemId}/${index}`,
    method: 'get',
  })
}

// 1.修改
export function saveInfo01(data) {
  return request({
    url: '/biz/item/01/saveInfo',
    method: 'post',
    data,
		headers: {
			repeatSubmit: false,
		}
  })
}

// 1.透视受检者入射体表空气比释动能率典型值
export function kermaRateTypical(data) {
  return request({
    url: '/biz/item/01/kermaRateTypical',
    method: 'post',
    data,
		headers: {
			repeatSubmit: false,
		}
  })
}
// 2、透视受检者入射体表空气比释动能率最大值
export function kermaRateMax(data) {
  return request({
    url: '/biz/item/01/kermaRateMax',
    method: 'post',
    data,
		headers: {
			repeatSubmit: false,
		}
  })
}
// 3、入射屏前空气比释动能率
export function kermaRateIncidence(data) {
  return request({
    url: '/biz/item/01/kermaRateIncidence',
    method: 'post',
    data,
		headers: {
			repeatSubmit: false,
		}
  })
}
// 4、高对比度分辨力
export function contrastResolutionHigh(data) {
  return request({
    url: '/biz/item/01/contrastResolutionHigh',
    method: 'post',
    data,
		headers: {
			repeatSubmit: false,
		}
  })
}
// 5、低对比度分辨力
export function contrastResolutionLow(data) {
  return request({
    url: '/biz/item/01/contrastResolutionLow',
    method: 'post',
    data,
		headers: {
			repeatSubmit: false,
		}
  })
}
// 6、自动亮度控制
export function automaticBrightness(data) {
  return request({
    url: '/biz/item/01/automaticBrightness',
    method: 'post',
    data,
		headers: {
			repeatSubmit: false,
		}
  })
}

// 7、透视防护区检测平面上周围剂量当量率
export function doseEquivalentRate(data) {
  return request({
    url: '/biz/item/01/doseEquivalentRate',
    method: 'post',
    data,
		headers: {
			repeatSubmit: false,
		}
  })
}

export function addDetector(resultId) {
  return request({
    url: `/biz/item/01/addDetector/${resultId}`,
    method: 'post',
  })
}
export function removeDetector01(resultId, index) {
  return request({
    url: `/biz/item/01/removeDetector/${resultId}/${index}`,
    method: 'post',
  })
}
